/**
 * 
 */
package com.cp16.tss.dto;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author GiangHN
 * @version 1.0
 * @since 01/01/2014
 * 
 */
@Entity
@Table(name = "SERVICE")
public class Service {
	@Id
	@Column(name = "SERVICE_ID", nullable = false)
	private String serviceId;
	@Column(name = "SERVICE_NAME")
	private String serviceName;
	@Column(name = "SERVICE_PRICE")
	private int servicePrice;
	@Temporal(TemporalType.DATE)
	@Column(name = "DATE")
	private Date dateOfQuotation;
	@ManyToOne
	private Requirement requirement;

	/**
	 * @return the serviceId
	 */
	public String getServiceId() {
		return serviceId;
	}

	/**
	 * @param serviceId the serviceId to set
	 */
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	/**
	 * @return the serviceName
	 */
	public String getServiceName() {
		return serviceName;
	}

	/**
	 * @param serviceName
	 *            the serviceName to set
	 */
	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	/**
	 * @return the servicePrice
	 */
	public int getServicePrice() {
		return servicePrice;
	}

	/**
	 * @param servicePrice
	 *            the servicePrice to set
	 */
	public void setServicePrice(int servicePrice) {
		this.servicePrice = servicePrice;
	}

	/**
	 * @return the requirement
	 */
	public Requirement getRequirement() {
		return requirement;
	}

	/**
	 * @param requirement
	 *            the requirement to set
	 */
	public void setRequirement(Requirement requirement) {
		this.requirement = requirement;
	}

	/**
	 * @return the dateOfQuotation
	 */
	public Date getDateOfQuotation() {
		return dateOfQuotation;
	}

	/**
	 * @param dateOfQuotation
	 *            the dateOfQuotation to set
	 */
	public void setDateOfQuotation(Date dateOfQuotation) {
		this.dateOfQuotation = dateOfQuotation;
	}

}
